cmake_minimum_required(VERSION 3.16)

project(a_star_normal)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${INNER_INCLUDE_DIR} # 包含上inner_libs的include路径，在源文件里包含头文件时就可以省掉INNER_INCLUDE_DIR的部分
)

# 变成成静态库
add_library(${PROJECT_NAME} STATIC ${SRC})

set_target_properties(${PROJECT_NAME} PROPERTIES LINK_OPTIONS -s) # strip
# 设置编译链接的文件夹
link_directories(
    ${INNER_LIB_DIR}
)
# 设置编译链接的库文件
target_link_libraries(${PROJECT_NAME}
    common
)
